﻿<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" href="../helpproject.xsl" ?>
<topic template="Default" lasteditedby="Geert" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../helpproject.xsd">
  <title translate="true">Convert Windows Phone application to Catel 3.0</title>
  <keywords>
    <keyword translate="true">Breaking changes</keyword>
    <keyword translate="true">Catel 3.0</keyword>
    <keyword translate="true">Windows Phone 7</keyword>
    <keyword translate="true">WP7</keyword>
  </keywords>
  <body>
    <header>
      <para styleclass="Heading1"><text styleclass="Heading1" translate="true">Convert Windows Phone application to Catel 3.0</text></para>
    </header>
    <para styleclass="Normal"><text styleclass="Normal" translate="true">Use the following checklist to make sure that your application will not break.</text></para>
    <para styleclass="Heading1"><text styleclass="Heading1" translate="true">Converting the assemblies</text></para>
    <para styleclass="Normal"><text styleclass="Normal" translate="true">The assemblies for Catel have changed. The changes allow developers to use the Catel.Core in web projects and separates some less used logic into extensions. The following changes have been made:</text></para>
    <list id="4" type="ul" listtype="bullet" formatstring="&#183;" format-charset="SYMBOL_CHARSET" levelreset="true" legalstyle="false" startfrom="1" styleclass="Normal (list)" style="font-family:Symbol; font-size:10pt; color:#000000;">
      <li styleclass="Normal (list)"><text styleclass="Normal (list)" style="font-weight:bold;" translate="true">Catel.WP7</text><text styleclass="Normal (list)" translate="true"> =&gt; Splitted into Catel.Core, Catel.MVVM and Catel.Extensions.Controls</text></li>
    </list>
    <para styleclass="Heading1"><text styleclass="Heading1" translate="true">Converting the views</text></para>
    <list id="5" type="ol" listtype="decimal" formatstring="&#37;&#48;&#58;&#115;&#46;" format-charset="DEFAULT_CHARSET" levelreset="true" legalstyle="false" startfrom="1" styleclass="Normal" style="font-family:Arial; font-size:10pt; color:#000000;">
      <li styleclass="Normal"><text styleclass="Normal" translate="true">For each view, remove the view model declaration and the intermediate class in the code behind:</text></li>
    </list>
    <para styleclass="Code Example"><text styleclass="Code Example" style="font-weight:normal; font-style:italic; color:#000000;" translate="true">/// &lt;summary&gt;</text><br/><text styleclass="Code Example" style="font-weight:normal; font-style:italic; color:#000000;" translate="true">/// Dummy class because Silverlight doesn&apos;t allow generic user controls.</text><br/><text styleclass="Code Example" style="font-weight:normal; font-style:italic; color:#000000;" translate="true">/// &lt;/summary&gt;</text><br/><text styleclass="Code Example" style="font-weight:bold; font-style:normal; color:#000000;" translate="true">public</text><text styleclass="Code Example" style="font-weight:normal; font-style:normal; color:#ffffff;" translate="true">&#32;</text><text styleclass="Code Example" style="font-weight:bold; font-style:normal; color:#000000;" translate="true">class</text><text styleclass="Code Example" style="font-weight:normal; font-style:normal; color:#ffffff;" translate="true">&#32;</text><text styleclass="Code Example" style="font-weight:normal; font-style:normal; color:#000000;" translate="true">MainPageIntermediate</text><text styleclass="Code Example" style="font-weight:normal; font-style:normal; color:#ffffff;" translate="true">&#32;</text><text styleclass="Code Example" style="font-weight:normal; font-style:normal; color:#000000;" translate="true">:</text><text styleclass="Code Example" style="font-weight:normal; font-style:normal; color:#ffffff;" translate="true">&#32;</text><text styleclass="Code Example" style="font-weight:normal; font-style:normal; color:#000000;" translate="true">PhoneApplicationPage&lt;MainPageViewModel&gt;</text><br/><text styleclass="Code Example" style="font-weight:normal; font-style:normal; color:#000000;" translate="true">{</text><br/><text styleclass="Code Example" style="font-weight:normal; font-style:normal; color:#000000;" translate="true">}</text><br/><br/><text styleclass="Code Example" style="font-weight:normal; font-style:italic; color:#000000;" translate="true">/// &lt;summary&gt;</text><br/><text styleclass="Code Example" style="font-weight:normal; font-style:italic; color:#000000;" translate="true">/// Main page.</text><br/><text styleclass="Code Example" style="font-weight:normal; font-style:italic; color:#000000;" translate="true">/// &lt;/summary&gt;</text><br/><text styleclass="Code Example" style="font-weight:bold; font-style:normal; color:#000000;" translate="true">public</text><text styleclass="Code Example" style="font-weight:normal; font-style:normal; color:#ffffff;" translate="true">&#32;</text><text styleclass="Code Example" style="font-weight:normal; font-style:normal; color:#000000;" translate="true">partial</text><text styleclass="Code Example" style="font-weight:normal; font-style:normal; color:#ffffff;" translate="true">&#32;</text><text styleclass="Code Example" style="font-weight:bold; font-style:normal; color:#000000;" translate="true">class</text><text styleclass="Code Example" style="font-weight:normal; font-style:normal; color:#ffffff;" translate="true">&#32;</text><text styleclass="Code Example" style="font-weight:normal; font-style:normal; color:#000000;" translate="true">MainPage</text><text styleclass="Code Example" style="font-weight:normal; font-style:normal; color:#ffffff;" translate="true">&#32;</text><text styleclass="Code Example" style="font-weight:normal; font-style:normal; color:#000000;" translate="true">:</text><text styleclass="Code Example" style="font-weight:normal; font-style:normal; color:#ffffff;" translate="true">&#32;</text><text styleclass="Code Example" style="font-weight:normal; font-style:normal; color:#000000;" translate="true">MainPageIntermediate</text><br/><text styleclass="Code Example" style="font-weight:normal; font-style:normal; color:#000000;" translate="true">{</text><br/><text styleclass="Code Example" style="font-weight:normal; font-style:normal; color:#ffffff;" translate="true"> &#160; &#160;</text><text styleclass="Code Example" style="font-weight:normal; font-style:italic; color:#000000;" translate="true">/// &lt;summary&gt;</text><br/><text styleclass="Code Example" style="font-weight:normal; font-style:normal; color:#ffffff;" translate="true"> &#160; &#160;</text><text styleclass="Code Example" style="font-weight:normal; font-style:italic; color:#000000;" translate="true">/// Initializes a new instance of the &lt;see cref=&quot;MainPage&quot;/&gt; class.</text><br/><text styleclass="Code Example" style="font-weight:normal; font-style:normal; color:#ffffff;" translate="true"> &#160; &#160;</text><text styleclass="Code Example" style="font-weight:normal; font-style:italic; color:#000000;" translate="true">/// &lt;/summary&gt;</text><br/><text styleclass="Code Example" style="font-weight:normal; font-style:normal; color:#ffffff;" translate="true"> &#160; &#160;</text><text styleclass="Code Example" style="font-weight:bold; font-style:normal; color:#000000;" translate="true">public</text><text styleclass="Code Example" style="font-weight:normal; font-style:normal; color:#ffffff;" translate="true">&#32;</text><text styleclass="Code Example" style="font-weight:normal; font-style:normal; color:#000000;" translate="true">MainPage()</text><br/><text styleclass="Code Example" style="font-weight:normal; font-style:normal; color:#ffffff;" translate="true"> &#160; &#160;</text><text styleclass="Code Example" style="font-weight:normal; font-style:normal; color:#000000;" translate="true">{</text><br/><text styleclass="Code Example" style="font-weight:normal; font-style:normal; color:#ffffff;" translate="true"> &#160; &#160; &#160; &#160;</text><text styleclass="Code Example" style="font-weight:normal; font-style:normal; color:#000000;" translate="true">InitializeComponent();</text><br/><text styleclass="Code Example" style="font-weight:normal; font-style:normal; color:#ffffff;" translate="true"> &#160; &#160;</text><text styleclass="Code Example" style="font-weight:normal; font-style:normal; color:#000000;" translate="true">}</text><br/><text styleclass="Code Example" style="font-weight:normal; font-style:normal; color:#000000;" translate="true">}</text></para>
    <para styleclass="Normal"><text styleclass="Normal" translate="true">becomes</text></para>
    <para styleclass="Code Example"><text styleclass="Code Example" style="font-weight:normal; font-style:italic; color:#000000;" translate="true">/// &lt;summary&gt;</text><br/><text styleclass="Code Example" style="font-weight:normal; font-style:italic; color:#000000;" translate="true">/// Main page.</text><br/><text styleclass="Code Example" style="font-weight:normal; font-style:italic; color:#000000;" translate="true">/// &lt;/summary&gt;</text><br/><text styleclass="Code Example" style="font-weight:bold; font-style:normal; color:#000000;" translate="true">public</text><text styleclass="Code Example" style="font-weight:normal; font-style:normal; color:#ffffff;" translate="true">&#32;</text><text styleclass="Code Example" style="font-weight:normal; font-style:normal; color:#000000;" translate="true">partial</text><text styleclass="Code Example" style="font-weight:normal; font-style:normal; color:#ffffff;" translate="true">&#32;</text><text styleclass="Code Example" style="font-weight:bold; font-style:normal; color:#000000;" translate="true">class</text><text styleclass="Code Example" style="font-weight:normal; font-style:normal; color:#ffffff;" translate="true">&#32;</text><text styleclass="Code Example" style="font-weight:normal; font-style:normal; color:#000000;" translate="true">MainPage</text><text styleclass="Code Example" style="font-weight:normal; font-style:normal; color:#ffffff;" translate="true">&#32;</text><text styleclass="Code Example" style="font-weight:normal; font-style:normal; color:#000000;" translate="true">:</text><text styleclass="Code Example" style="font-weight:normal; font-style:normal; color:#ffffff;" translate="true">&#32;</text><text styleclass="Code Example" style="font-weight:normal; font-style:normal; color:#000000;" translate="true">Catel.Phone.Controls.PhoneApplicationPage</text><br/><text styleclass="Code Example" style="font-weight:normal; font-style:normal; color:#000000;" translate="true">{</text><br/><text styleclass="Code Example" style="font-weight:normal; font-style:normal; color:#ffffff;" translate="true"> &#160; &#160;</text><text styleclass="Code Example" style="font-weight:normal; font-style:italic; color:#000000;" translate="true">/// &lt;summary&gt;</text><br/><text styleclass="Code Example" style="font-weight:normal; font-style:normal; color:#ffffff;" translate="true"> &#160; &#160;</text><text styleclass="Code Example" style="font-weight:normal; font-style:italic; color:#000000;" translate="true">/// Initializes a new instance of the &lt;see cref=&quot;MainPage&quot;/&gt; class.</text><br/><text styleclass="Code Example" style="font-weight:normal; font-style:normal; color:#ffffff;" translate="true"> &#160; &#160;</text><text styleclass="Code Example" style="font-weight:normal; font-style:italic; color:#000000;" translate="true">/// &lt;/summary&gt;</text><br/><text styleclass="Code Example" style="font-weight:normal; font-style:normal; color:#ffffff;" translate="true"> &#160; &#160;</text><text styleclass="Code Example" style="font-weight:bold; font-style:normal; color:#000000;" translate="true">public</text><text styleclass="Code Example" style="font-weight:normal; font-style:normal; color:#ffffff;" translate="true">&#32;</text><text styleclass="Code Example" style="font-weight:normal; font-style:normal; color:#000000;" translate="true">MainPage()</text><br/><text styleclass="Code Example" style="font-weight:normal; font-style:normal; color:#ffffff;" translate="true"> &#160; &#160;</text><text styleclass="Code Example" style="font-weight:normal; font-style:normal; color:#000000;" translate="true">{</text><br/><text styleclass="Code Example" style="font-weight:normal; font-style:normal; color:#ffffff;" translate="true"> &#160; &#160; &#160; &#160;</text><text styleclass="Code Example" style="font-weight:normal; font-style:normal; color:#000000;" translate="true">InitializeComponent();</text><br/><text styleclass="Code Example" style="font-weight:normal; font-style:normal; color:#ffffff;" translate="true"> &#160; &#160;</text><text styleclass="Code Example" style="font-weight:normal; font-style:normal; color:#000000;" translate="true">}</text><br/><text styleclass="Code Example" style="font-weight:normal; font-style:normal; color:#000000;" translate="true">}</text></para>
    <list id="5" type="ol" listtype="decimal" formatstring="&#37;&#48;&#58;&#115;&#46;" format-charset="DEFAULT_CHARSET" levelreset="true" legalstyle="false" startfrom="1" styleclass="Normal" style="font-family:Arial; font-size:10pt; color:#000000;">
      <li styleclass="Normal"><text styleclass="Normal" translate="true">For each view, remove the generic definition from the xaml:</text></li>
    </list>
    <para styleclass="Code Example"><text styleclass="Code Example" style="font-weight:bold; font-style:normal; color:#000000;" translate="true">&lt;</text><text styleclass="Code Example" style="font-weight:bold; font-style:normal; color:#ff0000;" translate="true">Views</text><text styleclass="Code Example" style="font-weight:bold; font-style:normal; color:#000000;" translate="true">:MainPageIntermediate</text><text styleclass="Code Example" style="font-weight:normal; font-style:normal; color:#000000;" translate="true">&#32;</text><text styleclass="Code Example" style="font-weight:bold; font-style:normal; color:#000000;" translate="true">x:Class=</text><text styleclass="Code Example" style="font-weight:normal; font-style:normal; color:#0080ff;" translate="true">&quot;Catel.Examples.WP7.PersonApplication.Views.MainPage&quot;</text></para>
    <para styleclass="Normal"><text styleclass="Normal" translate="true">becomes</text></para>
    <para styleclass="Code Example"><text styleclass="Code Example" style="font-weight:bold; font-style:normal; color:#000000;" translate="true">&lt;</text><text styleclass="Code Example" style="font-weight:bold; font-style:normal; color:#ff0000;" translate="true">catel:PhoneApplicationPage</text><text styleclass="Code Example" style="font-weight:normal; font-style:normal; color:#000000;" translate="true">&#32;</text><text styleclass="Code Example" style="font-weight:bold; font-style:normal; color:#000000;" translate="true">x:Class=</text><text styleclass="Code Example" style="font-weight:normal; font-style:normal; color:#0080ff;" translate="true">&quot;Catel.Examples.WP7.PersonApplication.Views.MainPage&quot;</text></para>
    <para styleclass="Heading1"><text styleclass="Heading1" translate="true">Get a good understanding of how the view models are hooked to the views</text></para>
    <para styleclass="Normal"><text styleclass="Normal" style="font-weight:normal;" translate="true">It is important that you understand the new way that Catel hooks up view models to a view. Because we removed teh generic base classes, it is not that easy anymore to find the right view model for the view. You can read about it all </text><link displaytype="text" defaultstyle="true" type="topiclink" href="MVVM_Locators_ViewModelLocator" styleclass="Normal" style="font-weight:normal;" translate="true">here</link><text styleclass="Normal" style="font-weight:normal;" translate="true">.</text></para>
    <para styleclass="Heading1"><text styleclass="Heading1" translate="true">Checking the naming conventions of the ViewModelLocator</text></para>
    <para styleclass="Normal"><text styleclass="Normal" translate="true">The following naming conventions are supported by default by the ViewModelLocator. If you use any other naming convention, don&apos;t forget to add them to the list of naming conventions:</text></para>
    <list id="15" type="ul" listtype="bullet" formatstring="&#183;" format-charset="SYMBOL_CHARSET" levelreset="true" legalstyle="false" startfrom="1" styleclass="Normal (list)" style="font-family:Symbol; font-size:10pt; color:#000000;">
      <li styleclass="Normal (list)"><text styleclass="Normal (list)" translate="true">[UP].ViewModels.[VW]ViewModel</text></li>
      <li styleclass="Normal (list)"><text styleclass="Normal (list)" translate="true">[UP].ViewModels.[VW]ControlViewModel</text></li>
      <li styleclass="Normal (list)"><text styleclass="Normal (list)" translate="true">[UP].ViewModels.[VW]WindowViewModel</text></li>
      <li styleclass="Normal (list)"><text styleclass="Normal (list)" translate="true">[UP].ViewModels.[VW]PageViewModel</text></li>
      <li styleclass="Normal (list)"><text styleclass="Normal (list)" translate="true">[AS].ViewModels.[VW]ViewModel</text></li>
      <li styleclass="Normal (list)"><text styleclass="Normal (list)" translate="true">[AS].ViewModels.[VW]ControlViewModel</text></li>
      <li styleclass="Normal (list)"><text styleclass="Normal (list)" translate="true">[AS].ViewModels.[VW]WindowViewModel</text></li>
      <li styleclass="Normal (list)"><text styleclass="Normal (list)" translate="true">[AS].ViewModels.[VW]PageViewModel</text></li>
    </list>
    <para styleclass="Normal"><text styleclass="Normal" translate="true">A naming convention can be added using the following code:</text></para>
    <para styleclass="Code Example"><text styleclass="Code Example" style="font-weight:normal; font-style:normal; color:#000000;" translate="true">var</text><text styleclass="Code Example" style="font-weight:normal; font-style:normal; color:#ffffff;" translate="true">&#32;</text><text styleclass="Code Example" style="font-weight:normal; font-style:normal; color:#000000;" translate="true">viewModelLocator</text><text styleclass="Code Example" style="font-weight:normal; font-style:normal; color:#ffffff;" translate="true">&#32;</text><text styleclass="Code Example" style="font-weight:normal; font-style:normal; color:#000000;" translate="true">=</text><text styleclass="Code Example" style="font-weight:normal; font-style:normal; color:#ffffff;" translate="true">&#32;</text><text styleclass="Code Example" style="font-weight:normal; font-style:normal; color:#000000;" translate="true">ServiceLocator.Instance.ResolveType&lt;IViewModelLocator&gt;();</text><br/><text styleclass="Code Example" style="font-weight:normal; font-style:normal; color:#000000;" translate="true">viewModelLocator.NamingConventions.Add(&quot;MyNamespace.MyViewModels.[VW]ViewModel&quot;);</text></para>
    <para styleclass="Heading1"><text styleclass="Heading1" translate="true">Checking the naming conventions of the ViewLocator</text></para>
    <para styleclass="Normal"><text styleclass="Normal" translate="true">The following naming conventions are supported by default by the ViewLocator. If you use any other naming convention, don&apos;t forget to add them to the list of naming conventions:</text></para>
    <list id="16" type="ul" listtype="bullet" formatstring="&#183;" format-charset="SYMBOL_CHARSET" levelreset="true" legalstyle="false" startfrom="1" styleclass="Normal (list)" style="font-family:Symbol; font-size:10pt; color:#000000;">
      <li styleclass="Normal (list)"><text styleclass="Normal (list)" translate="true">[UP].Views.[VM]</text></li>
      <li styleclass="Normal (list)"><text styleclass="Normal (list)" translate="true">[UP].Views.[VM]View</text></li>
      <li styleclass="Normal (list)"><text styleclass="Normal (list)" translate="true">[UP].Views.[VM]Control</text></li>
      <li styleclass="Normal (list)"><text styleclass="Normal (list)" translate="true">[UP].Views.[VM]Window</text></li>
      <li styleclass="Normal (list)"><text styleclass="Normal (list)" translate="true">[UP].Views.[VM]Page</text></li>
      <li styleclass="Normal (list)"><text styleclass="Normal (list)" translate="true">[UP].Controls.[VM]</text></li>
      <li styleclass="Normal (list)"><text styleclass="Normal (list)" translate="true">[UP].Controls.[VM]Control</text></li>
      <li styleclass="Normal (list)"><text styleclass="Normal (list)" translate="true">[UP].Pages.[VM]</text></li>
      <li styleclass="Normal (list)"><text styleclass="Normal (list)" translate="true">[UP].Pages.[VM]Page</text></li>
      <li styleclass="Normal (list)"><text styleclass="Normal (list)" translate="true">[UP].Windows.[VM]</text></li>
      <li styleclass="Normal (list)"><text styleclass="Normal (list)" translate="true">[UP].Windows.[VM]Window</text></li>
      <li styleclass="Normal (list)"><text styleclass="Normal (list)" translate="true">[AS].Views.[VM]</text></li>
      <li styleclass="Normal (list)"><text styleclass="Normal (list)" translate="true">[AS].Views.[VM]View</text></li>
      <li styleclass="Normal (list)"><text styleclass="Normal (list)" translate="true">[AS].Views.[VM]Control</text></li>
      <li styleclass="Normal (list)"><text styleclass="Normal (list)" translate="true">[AS].Views.[VM]Page</text></li>
      <li styleclass="Normal (list)"><text styleclass="Normal (list)" translate="true">[AS].Views.[VM]Window</text></li>
      <li styleclass="Normal (list)"><text styleclass="Normal (list)" translate="true">[AS].Controls.[VM]</text></li>
      <li styleclass="Normal (list)"><text styleclass="Normal (list)" translate="true">[AS].Controls.[VM]Control</text></li>
      <li styleclass="Normal (list)"><text styleclass="Normal (list)" translate="true">[AS].Pages.[VM]</text></li>
      <li styleclass="Normal (list)"><text styleclass="Normal (list)" translate="true">[AS].Pages.[VM]Page</text></li>
      <li styleclass="Normal (list)"><text styleclass="Normal (list)" translate="true">[AS].Windows.[VM]</text></li>
      <li styleclass="Normal (list)"><text styleclass="Normal (list)" translate="true">[AS].Windows.[VM]Window</text></li>
      <li styleclass="Normal (list)"><text styleclass="Normal (list)" translate="true">[AS].UI.Views.[VM]</text></li>
      <li styleclass="Normal (list)"><text styleclass="Normal (list)" translate="true">[AS].UI.Views.[VM]View</text></li>
      <li styleclass="Normal (list)"><text styleclass="Normal (list)" translate="true">[AS].UI.Views.[VM]Control</text></li>
      <li styleclass="Normal (list)"><text styleclass="Normal (list)" translate="true">[AS].UI.Views.[VM]Page</text></li>
      <li styleclass="Normal (list)"><text styleclass="Normal (list)" translate="true">[AS].UI.Views.[VM]Window</text></li>
      <li styleclass="Normal (list)"><text styleclass="Normal (list)" translate="true">[AS].UI.Controls.[VM]</text></li>
      <li styleclass="Normal (list)"><text styleclass="Normal (list)" translate="true">[AS].UI.Controls.[VM]Control</text></li>
      <li styleclass="Normal (list)"><text styleclass="Normal (list)" translate="true">[AS].UI.Pages.[VM]</text></li>
      <li styleclass="Normal (list)"><text styleclass="Normal (list)" translate="true">[AS].UI.Pages.[VM]Page</text></li>
      <li styleclass="Normal (list)"><text styleclass="Normal (list)" translate="true">[AS].UI.Windows.[VM]</text></li>
      <li styleclass="Normal (list)"><text styleclass="Normal (list)" translate="true">[AS].UI.Windows.[VM]Window</text></li>
    </list>
    <para styleclass="Normal"><text styleclass="Normal" translate="true">A naming convention can be added using the following code:</text></para>
    <para styleclass="Code Example"><text styleclass="Code Example" style="font-weight:normal; font-style:normal; color:#000000;" translate="true">var</text><text styleclass="Code Example" style="font-weight:normal; font-style:normal; color:#ffffff;" translate="true">&#32;</text><text styleclass="Code Example" style="font-weight:normal; font-style:normal; color:#000000;" translate="true">viewLocator</text><text styleclass="Code Example" style="font-weight:normal; font-style:normal; color:#ffffff;" translate="true">&#32;</text><text styleclass="Code Example" style="font-weight:normal; font-style:normal; color:#000000;" translate="true">=</text><text styleclass="Code Example" style="font-weight:normal; font-style:normal; color:#ffffff;" translate="true">&#32;</text><text styleclass="Code Example" style="font-weight:normal; font-style:normal; color:#000000;" translate="true">ServiceLocator.Instance.ResolveType&lt;IViewLocator&gt;();</text><br/><text styleclass="Code Example" style="font-weight:normal; font-style:normal; color:#000000;" translate="true">viewLocator.NamingConventions.Add(&quot;MyNamespace.MyViews.[VM]View&quot;);</text></para>
    <para styleclass="Heading1"><text styleclass="Heading1" translate="true">Checking the naming conventions of the UrlLocator</text></para>
    <list id="17" type="ul" listtype="bullet" formatstring="&#183;" format-charset="SYMBOL_CHARSET" levelreset="true" legalstyle="false" startfrom="1" styleclass="Normal (list)" style="font-family:Symbol; font-size:10pt; color:#000000;">
      <li styleclass="Normal (list)"><text styleclass="Normal (list)" translate="true">/Views/[VM].xaml</text></li>
      <li styleclass="Normal (list)"><text styleclass="Normal (list)" translate="true">/Views/[VM]View.xaml</text></li>
      <li styleclass="Normal (list)"><text styleclass="Normal (list)" translate="true">/Views/[VM]Control.xaml</text></li>
      <li styleclass="Normal (list)"><text styleclass="Normal (list)" translate="true">/Views/[VM]Page.xaml</text></li>
      <li styleclass="Normal (list)"><text styleclass="Normal (list)" translate="true">/Views/[VM]Window.xaml</text></li>
      <li styleclass="Normal (list)"><text styleclass="Normal (list)" translate="true">/Controls/[VM].xaml</text></li>
      <li styleclass="Normal (list)"><text styleclass="Normal (list)" translate="true">/Controls/[VM]Control.xaml</text></li>
      <li styleclass="Normal (list)"><text styleclass="Normal (list)" translate="true">/Pages/[VM].xaml</text></li>
      <li styleclass="Normal (list)"><text styleclass="Normal (list)" translate="true">/Pages/[VM]Page.xaml</text></li>
      <li styleclass="Normal (list)"><text styleclass="Normal (list)" translate="true">/Windows/[VM].xaml</text></li>
      <li styleclass="Normal (list)"><text styleclass="Normal (list)" translate="true">/Windows/[VM]Window.xaml</text></li>
      <li styleclass="Normal (list)"><text styleclass="Normal (list)" translate="true">/UI.Views/[VM].xaml</text></li>
      <li styleclass="Normal (list)"><text styleclass="Normal (list)" translate="true">/UI.Views/[VM]View.xaml</text></li>
      <li styleclass="Normal (list)"><text styleclass="Normal (list)" translate="true">/UI.Views/[VM]Control.xaml</text></li>
      <li styleclass="Normal (list)"><text styleclass="Normal (list)" translate="true">/UI.Views/[VM]Page.xaml</text></li>
      <li styleclass="Normal (list)"><text styleclass="Normal (list)" translate="true">/UI.Views/[VM]Window.xaml</text></li>
      <li styleclass="Normal (list)"><text styleclass="Normal (list)" translate="true">/UI.Controls/[VM].xaml</text></li>
      <li styleclass="Normal (list)"><text styleclass="Normal (list)" translate="true">/UI.Controls/[VM]Control.xaml</text></li>
      <li styleclass="Normal (list)"><text styleclass="Normal (list)" translate="true">/UI.Pages/[VM].xaml</text></li>
      <li styleclass="Normal (list)"><text styleclass="Normal (list)" translate="true">/UI.Pages/[VM]Page.xaml</text></li>
      <li styleclass="Normal (list)"><text styleclass="Normal (list)" translate="true">/UI.Windows/[VM].xaml</text></li>
      <li styleclass="Normal (list)"><text styleclass="Normal (list)" translate="true">/UI.Windows/[VM]Window.xaml</text></li>
    </list>
    <para styleclass="Normal"><text styleclass="Normal" translate="true">A naming convention can be added using the following code:</text></para>
    <para styleclass="Code Example"><text styleclass="Code Example" style="font-weight:normal; font-style:normal; color:#000000;" translate="true">var</text><text styleclass="Code Example" style="font-weight:normal; font-style:normal; color:#ffffff;" translate="true">&#32;</text><text styleclass="Code Example" style="font-weight:normal; font-style:normal; color:#000000;" translate="true">urlLocator</text><text styleclass="Code Example" style="font-weight:normal; font-style:normal; color:#ffffff;" translate="true">&#32;</text><text styleclass="Code Example" style="font-weight:normal; font-style:normal; color:#000000;" translate="true">=</text><text styleclass="Code Example" style="font-weight:normal; font-style:normal; color:#ffffff;" translate="true">&#32;</text><text styleclass="Code Example" style="font-weight:normal; font-style:normal; color:#000000;" translate="true">ServiceLocator.Instance.ResolveType&lt;IUrlLocator&gt;();</text><br/><text styleclass="Code Example" style="font-weight:normal; font-style:normal; color:#000000;" translate="true">urlLocator.NamingConventions.Add(&quot;MyNamespace.MyViews.[VM]View&quot;);</text></para>
  </body>
</topic>
